#ifndef __LIB_GENSQL_H__
#define __LIB_GENSQL_H__
#include "yatengine.h"
#include "yatephone.h"
using namespace TelEngine;

enum {
	B_STRING = 1,
	B_INT = 2,
};

typedef struct _db_field {
	int struct_id;
	int order_id;
	int	offset;
	int	type;
	int size;
	char name[32];
} db_field;

typedef struct _db_struct {
	int struct_id;
	int total_size;
} db_struct;

class GenSQLModule : public Module {
public:
	GenSQLModule();
	~GenSQLModule();
protected:
	virtual void initialize();
	virtual bool received(Message& msg, int id);
private:
	void gensql();
};

#endif